# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Apply to all files without commiting:
#   pre-commit run --all-files
# Update this file:
#   pre-commit autoupdate
# If we really have to skip tests we can use --no-verify
default_language_version:
  python: python3
repos:
-   repo: https://github.com/psf/black
    rev: 22.3.0
    hooks:
    -   id: black
        additional_dependencies: ['click==8.0.4']
        args: [--safe, --quiet]
-   repo: https://github.com/timothycrosley/isort
    rev: 5.10.1
    hooks:
    -   id: isort
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.2.0
    hooks:
    -   id: no-commit-to-branch
        args: [--branch, master, --branch, main]
    -   id: check-merge-conflict
    -   id: fix-byte-order-marker
    -   id: check-case-conflict
    -   id: check-docstring-first
    -   id: check-executables-have-shebangs
    -   id: check-ast
    -   id: check-added-large-files
    -   id: check-yaml
        exclude: "mkdocs.yml"
    -   id: check-toml
    -   id: check-json
    -   id: debug-statements
    -   id: pretty-format-json
        args: [--autofix, --no-sort-keys]
    -   id: end-of-file-fixer
        exclude: ^LICENSES/|\.(html|csv|txt|svg|py)$
    -   id: fix-encoding-pragma
        args: [--remove]
    -   id: trailing-whitespace
        args: [--markdown-linebreak-ext=md]
        exclude: \.(html|svg)$
    -   id: mixed-line-ending
        args: [--fix=lf]
-   repo: local
    hooks:
    -   id: sanitizer
        name: remove duplicate entries
        entry: python sanitizer.py
        language: python
